package com.company;

public class L_ShapeTest {
    public static void main(String[] args)
    {
        L_Square square=new L_Square(5,4);    //创建正方形类对象
        System.out.println("正方形的面积为："+square.area());
        L_Triangle1 triangle=new L_Triangle1(2,5);    //创建三角形类对象
        System.out.println("三角形的面积为："+triangle.area());
    }
}
